#include<iostream>
using namespace std;
int main(){
	int num,count=0;
	float sum=0;
	for(int i=0;i<20;i++){
		scanf("%d",&num);
		if(num<0){
			count++;
		}else{
			sum+=num;
		}
	}
	printf("%d\n%.2f\n",count,sum/(20-count));
	return 0;
}
